package com.zhaoxi.project.hrp.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhaoxi.framework.aspectj.lang.annotation.Excel;
import com.zhaoxi.framework.web.domain.BaseEntity;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 合作伙伴对象 hrp_partner
 * 
 * @author zhaoxi
 * @date 2023-07-07
 */
@Data
public class HrpPartner extends BaseEntity{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 上级 */
    @Excel(name = "上级")
    private Long parentId;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 性别 */
    @Excel(name = "性别")
    private String sex;

    /** 归属销售 */
    @Excel(name = "归属销售")
    private Long userId;

    /** 归属团队 */
    @Excel(name = "归属团队")
    private String teamId;

    /** 手机号 */
    @Excel(name = "手机号")
    private String mobile;

    /** 是否启用 */
    @Excel(name = "是否启用")
    private String enableFlag;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 社会编码 */
    @Excel(name = "社会编码")
    private String idCard;

    /** 诞生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "诞生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 是否供应商 */
    @Excel(name = "是否供应商")
    private String isSupplier;

    /** 是否供应商 */
    @Excel(name = "是否客户")
    private String isCustomer;

    /** 个人or公司 */
    @Excel(name = "个人or公司")
    private String isCompany;

    /** 客户来源 */
    @Excel(name = "客户来源")
    private String source;

    /** 销售阶段 */
    @Excel(name = "销售阶段")
    private String salesStage;

    /** 下次跟单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下次跟单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date nextTime;

    /** 简历详情 */
    @Excel(name = "简历详情")
    private String resumeText;

    @Excel(name = "图片路径")
    private String picture;

    public HrpPartner() {
    }

    public HrpPartner(String name, String mobile, String isCustomer) {
        this.name = name;
        this.mobile = mobile;
        this.isCustomer = isCustomer;
    }
}
